<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:s="http://jboss.org/schema/seam/taglib"
	template="template.xhtml">
	<ui:param name="tagName" value="s:resource, s:download" />
	<ui:define name="body">
		<p>Download a file.</p>
		<h:panelGrid columns="3">
			<h:outputText value="Totally restful" />
			<h:outputLink value="resources.seam?id=1">Text</h:outputLink>
			<h:outputLink value="resources.seam?id=2">Numbers</h:outputLink>
			<h:outputText value="Restful with s:download" />
			<s:download src="/resources.xhtml">
				<h:outputText value="Text" />
				<f:param name="id" value="1" />
			</s:download>
			<s:download src="/resources.xhtml">
				<h:outputText value="Numbers" />
				<f:param name="id" value="2" />
			</s:download>
		</h:panelGrid>
	</ui:define>
</ui:composition>
